//
//  DKTabBarViewController.m
//  DanKU
//
//  Created by 吴斌 on 2023/9/26.
//

#import "DKTabBarViewController.h"

@interface DKTabBarViewController ()

@end

@implementation DKTabBarViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self makeTabbar];
}
- (void)makeTabbar{
    UINavigationController * homeNavCtrl = [self makeSubTabbar:@"" withImgName:@"dk_tabbarHome" withCtrl:<#(UIViewController *)#>];
}
- (UINavigationController *)makeSubTabbar:(NSString *)title withImgName:(NSString *)imageName withCtrl:(UIViewController *)tabBarCtrl{
    NSString * namorImg = [NSString stringWithFormat:@"%@Normal",imageName];
    NSString * selectImg = [NSString stringWithFormat:@"%@Select",imageName];
    UINavigationController * navTabCtrl = [[UINavigationController alloc] initWithRootViewController:tabBarCtrl];
//    navTabCtrl.tabBarItem.title = title;
    navTabCtrl.tabBarItem.image = [DK_GetImage(namorImg) imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    navTabCtrl.tabBarItem.selectedImage = [DK_GetImage(selectImg) imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    return navTabCtrl;
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
